-- GENERATED SPELL FOR [Vorsha the Lasher] --


function spell0_12940(pUnit, Event) --@Lash,n/a--
pUnit:FullCastSpellOnTarget(6607,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12940', 1000, 1)
end

function spell1_12940(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_12940', 548, 1)
end

function Sorts_12940(pUnit, Event)
local choix_sorts_12940 = math.random(0, 1)
if choix_sorts_12940 == 0 then
pUnit:RegisterEvent('spell0_12940', 1, 1)
end
if choix_sorts_12940 == 1 then
pUnit:RegisterEvent('spell1_12940', 1, 1)
end
end

function mob12940_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12940', math.random(1500, 3000), 1)
end

function mob12940_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12940_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12940_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12940, 1, 'mob12940_Action')
RegisterUnitEvent(12940, 2, 'mob12940_Leave')
RegisterUnitEvent(12940, 3, 'mob12940_Kill')
RegisterUnitEvent(12940, 4, 'mob12940_Die')
